import axios from '@/request';

// 获取邮件管理数据  (支持搜索)
export const getSmtpList = (params: any) => {
  return axios.get('/api/smtp', {
    params,
  });
};
// 邮件管理删除
export const delSmtpItem = (id: any) => {
  return axios.delete(`/api/smtp/${id}`);
};
// 获取文件管理数据  (支持搜索)
export const getFileList = (params: any) => {
  return axios.get('/api/file', {
    params,
  });
};
// 文件管理删除
export const delFileItem = (id: any) => {
  return axios.delete(`/api/file/${id}`);
};
// 获取搜索记录数据  (支持搜索)
export const getSearchList = (params: any) => {
  return axios.get('/api/search', {
    params,
  });
};
// 搜索记录删除
export const searchListItem = (id: any) => {
  return axios.delete(`/api/search/${id}`);
};
// 获取访问统计数据  (支持搜索)
export const getViewList = (params: any) => {
  return axios.get('/api/view', {
    params,
  });
};
// 访问统计删除
export const delViewListItem = (id: string) => {
  return axios.delete(`/api/view/${id}`);
};
